package com.example.note.database;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "diary")
public class DiaryEntity {
    @PrimaryKey(autoGenerate = true)
    private int id;
    
    private String title;
    private String content;
    private String date;
    private String time;
    private String mood; // 心情
    private String weather; // 天气
    private String imagePath; // 图片路径
    private String handwritingPath; // 手写内容路径
    private boolean isHandwritten; // 是否为手写日记
    private long timestamp;
    private long reminderTime; // 提醒时间戳
    private boolean hasReminder; // 是否设置了提醒
    private String backgroundMusicPath; // 背景音乐路径
    private String inputMode; // 输入模式：typing 或 handwriting

    public DiaryEntity() {
        this.timestamp = System.currentTimeMillis();
    }
    
    // Getters and Setters
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public String getDate() {
        return date;
    }
    
    public void setDate(String date) {
        this.date = date;
    }
    
    public String getTime() {
        return time;
    }
    
    public void setTime(String time) {
        this.time = time;
    }
    
    public String getMood() {
        return mood;
    }
    
    public void setMood(String mood) {
        this.mood = mood;
    }
    
    public String getWeather() {
        return weather;
    }
    
    public void setWeather(String weather) {
        this.weather = weather;
    }
    
    public String getImagePath() {
        return imagePath;
    }
    
    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }
    
    public String getHandwritingPath() {
        return handwritingPath;
    }
    
    public void setHandwritingPath(String handwritingPath) {
        this.handwritingPath = handwritingPath;
    }
    
    public boolean isHandwritten() {
        return isHandwritten;
    }
    
    public void setHandwritten(boolean handwritten) {
        isHandwritten = handwritten;
    }
    
    public long getTimestamp() {
        return timestamp;
    }
    
    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
    
    public long getReminderTime() {
        return reminderTime;
    }
    
    public void setReminderTime(long reminderTime) {
        this.reminderTime = reminderTime;
    }
    
    public boolean isHasReminder() {
        return hasReminder;
    }
    
    public void setHasReminder(boolean hasReminder) {
        this.hasReminder = hasReminder;
    }

    public String getBackgroundMusicPath() {
        return backgroundMusicPath;
    }

    public void setBackgroundMusicPath(String backgroundMusicPath) {
        this.backgroundMusicPath = backgroundMusicPath;
    }

    public String getInputMode() {
        return inputMode;
    }

    public void setInputMode(String inputMode) {
        this.inputMode = inputMode;
    }
}